<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AIfES 2: aimath_cnn_f32_default.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="AIfES_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AIfES 2
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('aimath__cnn__f32__default_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">aimath_cnn_f32_default.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="aimath__cnn__f32__default_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef AIMATH_CNN_F32_DEFAULT_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define AIMATH_CNN_F32_DEFAULT_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;stdint.h&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="aifes__core_8h.html">core/aifes_core.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="aimath__f32_8h.html">basic/base/aimath/aimath_f32.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="aimath__f32__default_8h.html">basic/default/aimath/aimath_f32_default.h</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#define AIFES_PADDING_SAME      0xFFFF  </span><span class="comment">// Not fully implemented yet</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#define AIFES_PADDING_VALID     0</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a80dd6f6ad7235bcd71dffe4ad2b70493">   71</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a80dd6f6ad7235bcd71dffe4ad2b70493">aimath_f32_default_conv2d_add</a>(<span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *input,</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                   <span class="keyword">const</span> uint16_t stride[2],    <span class="comment">// [s_h, s_w]</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;                   <span class="keyword">const</span> uint16_t dilation[2],  <span class="comment">// [d_h, d_w]</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                   <span class="keyword">const</span> int16_t padding[2][2],</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                   <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *kernel,</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                   <span class="keyword">const</span> <span class="keywordtype">void</span> *bias,</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                   <span class="keyword">const</span> uint8_t rotated_kernel, <span class="comment">// wether or not the kernel is rotated by 180°; default is TRUE (1)</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                   <span class="keyword">const</span> int16_t *input_use_dims, <span class="comment">// Indices of dimensions for h and w</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                   <span class="keyword">const</span> int16_t *output_use_dims, <span class="comment">// Indices of dimensions for h and w</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                   <span class="keyword">const</span> int16_t *kernel_use_dims, <span class="comment">// Indices of dimensions for h and w</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                   <a class="code" href="structaitensor.html">aitensor_t</a> *output);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a4a2407949bafedbdb4671f5fd7e94c90">  112</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a4a2407949bafedbdb4671f5fd7e94c90">aimath_f32_default_conv_transpose2d_add</a>(<span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *input,</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                   <span class="keyword">const</span> uint16_t stride[2],    <span class="comment">// [s_h, s_w]; dilation of input</span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                   <span class="keyword">const</span> uint16_t dilation[2],  <span class="comment">// [d_h, d_w]; dilation of kernel</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;                   <span class="keyword">const</span> int16_t padding[2][2],</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                   <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *kernel,</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                   <span class="keyword">const</span> <span class="keywordtype">void</span> *bias,</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                   <span class="keyword">const</span> uint8_t rotated_kernel, <span class="comment">// wether or not the kernel is rotated by 180°; default is TRUE (1)</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;                   <span class="keyword">const</span> int16_t *input_use_dims, <span class="comment">// Indices of dimensions for h and w</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;                   <span class="keyword">const</span> int16_t *output_use_dims, <span class="comment">// Indices of dimensions for h and w</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;                   <span class="keyword">const</span> int16_t *kernel_use_dims, <span class="comment">// Indices of dimensions for h and w</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;                   <a class="code" href="structaitensor.html">aitensor_t</a> *output);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#ae9d848ae4f2579b06f0068ccbc056218">  144</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#ae9d848ae4f2579b06f0068ccbc056218">aimath_f32_default_conv2d_fwd</a>(</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *input,</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                    <span class="keyword">const</span> uint16_t stride[2],    <span class="comment">// [s_h, s_w]</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                    <span class="keyword">const</span> uint16_t dilation[2],  <span class="comment">// [d_h, d_w]</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                    <span class="keyword">const</span> uint16_t padding[2],</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *weights,</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *bias,</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;                    int8_t channel_axis,</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;                    <span class="keywordtype">void</span> *work_space,</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                    <a class="code" href="structaitensor.html">aitensor_t</a> *output</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                    );</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a82d65dcfee8478b18c4632da09ca64d7">  175</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a82d65dcfee8478b18c4632da09ca64d7">aimath_f32_default_conv2d_bwd</a>(</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *x_in,</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                    <span class="keyword">const</span> uint16_t stride[2],    <span class="comment">// [s_h, s_w]</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                    <span class="keyword">const</span> uint16_t dilation[2],  <span class="comment">// [d_h, d_w]</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                    <span class="keyword">const</span> uint16_t padding[2],</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *delta_out,</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                    int8_t channel_axis,</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;                    <span class="keywordtype">void</span> *work_space,</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                    <a class="code" href="structaitensor.html">aitensor_t</a> *d_weights</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00206"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a59c500b4d486ec40b922de8c11c92085">  206</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a59c500b4d486ec40b922de8c11c92085">aimath_f32_default_conv2d_bwd_full</a>(</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *delta_out,</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                    <span class="keyword">const</span> uint16_t stride[2],    <span class="comment">// [s_h, s_w]</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                    <span class="keyword">const</span> uint16_t dilation[2],  <span class="comment">// [d_h, d_w]</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;                    <span class="keyword">const</span> uint16_t padding[2],</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *weights,</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                    int8_t channel_axis,</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;                    <span class="keywordtype">void</span> *work_space,</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;                    <a class="code" href="structaitensor.html">aitensor_t</a> *delta_in</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;);</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160; </div>
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a95836b8bf809d28bb88d54ae66555798">  237</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a95836b8bf809d28bb88d54ae66555798">aimath_f32_default_conv_transpose2d_fwd</a>(</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *input,</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                    <span class="keyword">const</span> uint16_t stride[2],    <span class="comment">// input dilation</span></div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                    <span class="keyword">const</span> uint16_t dilation[2],  <span class="comment">// kernel dilation</span></div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                    <span class="keyword">const</span> uint16_t padding[2],</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                    <span class="keyword">const</span> uint16_t output_padding[2],</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *weights,</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;                    <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *bias,</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;                    int8_t channel_axis,</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;                    <span class="keywordtype">void</span> *work_space,</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;                    <a class="code" href="structaitensor.html">aitensor_t</a> *output</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                    );</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a084f32feda31c8ae1e82e769d900910b">  275</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a084f32feda31c8ae1e82e769d900910b">aimath_f32_default_maxpool2d_fwd</a>(</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *input,</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;                                      <span class="keyword">const</span> uint16_t pool_size[2],</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;                                      <span class="keyword">const</span> uint16_t stride[2],</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                                      <span class="keyword">const</span> uint16_t padding[2],</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;                                      int8_t channel_axis,</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;                                      <span class="keywordtype">void</span> *work_space,</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                                      uint32_t *max_locations,</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                                      <a class="code" href="structaitensor.html">aitensor_t</a> *output</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                                      );</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160; </div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a6752d0d55e6997f87e3a90b1d25e8159">  302</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a6752d0d55e6997f87e3a90b1d25e8159">aimath_f32_default_maxpool2d_bwd</a>(</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *delta_out,</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                                      <span class="keyword">const</span> uint16_t pool_size[2],</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;                                      <span class="keyword">const</span> uint16_t stride[2],</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                                      <span class="keyword">const</span> uint16_t padding[2],</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                                      int8_t channel_axis,</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;                                      <span class="keywordtype">void</span> *work_space,</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;                                      <span class="keyword">const</span> uint32_t *max_locations,</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;                                      <a class="code" href="structaitensor.html">aitensor_t</a> *delta_in</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;                                      );</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; </div>
<div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a74e774cfbfaf200251822ebb18a162f1">  329</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a74e774cfbfaf200251822ebb18a162f1">aimath_f32_default_batch_norm</a>(<span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *x,</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;                                            int8_t axis,</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;                                            <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *means,</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;                                            <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *variances,</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                                            <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *offsets,</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                                            <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *scales,</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                                            <span class="keyword">const</span> <span class="keywordtype">void</span> *eps,</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                                            <a class="code" href="structaitensor.html">aitensor_t</a> *result);</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a4332d4dfefbac8588b33e17bf2d95f08">  357</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a4332d4dfefbac8588b33e17bf2d95f08">aimath_f32_default_d_batch_norm</a>(<span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *x_in,</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                                              int8_t axis,</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *means,</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *vars,</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *betas,</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *gammas,</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *delta_out,</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;                                              <span class="keyword">const</span> <span class="keywordtype">void</span> *eps,</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                                              <a class="code" href="structaitensor.html">aitensor_t</a> *delta_in,</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;                                              <a class="code" href="structaitensor.html">aitensor_t</a> *d_betas,</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;                                              <a class="code" href="structaitensor.html">aitensor_t</a> *d_gammas);</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160; </div>
<div class="line"><a name="l00375"></a><span class="lineno"><a class="line" href="aimath__cnn__f32__default_8h.html#a2374fcf6d4594baa2d9e5aa91da07b34">  375</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="aimath__cnn__f32__default_8h.html#a2374fcf6d4594baa2d9e5aa91da07b34">aimath_f32_default_pad_zeros</a>(<span class="keyword">const</span> <a class="code" href="structaitensor.html">aitensor_t</a> *x, <span class="keyword">const</span> uint16_t (*padding)[2], <a class="code" href="structaitensor.html">aitensor_t</a> *result);</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;<span class="preprocessor"> #endif </span><span class="comment">// AIMATH_CNN_F32_DEFAULT_H</span></div>
<div class="ttc" id="aaifes__core_8h_html"><div class="ttname"><a href="aifes__core_8h.html">aifes_core.h</a></div><div class="ttdoc">AIfES 2 core interface.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a084f32feda31c8ae1e82e769d900910b"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a084f32feda31c8ae1e82e769d900910b">aimath_f32_default_maxpool2d_fwd</a></div><div class="ttdeci">void aimath_f32_default_maxpool2d_fwd(const aitensor_t *input, const uint16_t pool_size[2], const uint16_t stride[2], const uint16_t padding[2], int8_t channel_axis, void *work_space, uint32_t *max_locations, aitensor_t *output)</div><div class="ttdoc">2D max-pooling on 4D F32  tensors</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a2374fcf6d4594baa2d9e5aa91da07b34"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a2374fcf6d4594baa2d9e5aa91da07b34">aimath_f32_default_pad_zeros</a></div><div class="ttdeci">void aimath_f32_default_pad_zeros(const aitensor_t *x, const uint16_t(*padding)[2], aitensor_t *result)</div><div class="ttdoc">Pads a F32  tensor with zeros.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a4332d4dfefbac8588b33e17bf2d95f08"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a4332d4dfefbac8588b33e17bf2d95f08">aimath_f32_default_d_batch_norm</a></div><div class="ttdeci">void aimath_f32_default_d_batch_norm(const aitensor_t *x_in, int8_t axis, const aitensor_t *means, const aitensor_t *vars, const aitensor_t *betas, const aitensor_t *gammas, const aitensor_t *delta_out, const void *eps, aitensor_t *delta_in, aitensor_t *d_betas, aitensor_t *d_gammas)</div><div class="ttdoc">Calculates the gradients of Batch Normalization with respect to betas, gammas and the input in F32  d...</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a4a2407949bafedbdb4671f5fd7e94c90"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a4a2407949bafedbdb4671f5fd7e94c90">aimath_f32_default_conv_transpose2d_add</a></div><div class="ttdeci">void aimath_f32_default_conv_transpose2d_add(const aitensor_t *input, const uint16_t stride[2], const uint16_t dilation[2], const int16_t padding[2][2], const aitensor_t *kernel, const void *bias, const uint8_t rotated_kernel, const int16_t *input_use_dims, const int16_t *output_use_dims, const int16_t *kernel_use_dims, aitensor_t *output)</div><div class="ttdoc">Performs 2D transposed convolution (or deconvolution) on slices of 4D F32  tensors and adds an option...</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a59c500b4d486ec40b922de8c11c92085"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a59c500b4d486ec40b922de8c11c92085">aimath_f32_default_conv2d_bwd_full</a></div><div class="ttdeci">void aimath_f32_default_conv2d_bwd_full(const aitensor_t *delta_out, const uint16_t stride[2], const uint16_t dilation[2], const uint16_t padding[2], const aitensor_t *weights, int8_t channel_axis, void *work_space, aitensor_t *delta_in)</div><div class="ttdoc">Calculates the gradients of the Conv2D layer with respect to the weights in F32  data type.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a6752d0d55e6997f87e3a90b1d25e8159"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a6752d0d55e6997f87e3a90b1d25e8159">aimath_f32_default_maxpool2d_bwd</a></div><div class="ttdeci">void aimath_f32_default_maxpool2d_bwd(const aitensor_t *delta_out, const uint16_t pool_size[2], const uint16_t stride[2], const uint16_t padding[2], int8_t channel_axis, void *work_space, const uint32_t *max_locations, aitensor_t *delta_in)</div><div class="ttdoc">Calculates the gradients of the MaxPool2D layer with respect to the input in F32  data type.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a74e774cfbfaf200251822ebb18a162f1"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a74e774cfbfaf200251822ebb18a162f1">aimath_f32_default_batch_norm</a></div><div class="ttdeci">void aimath_f32_default_batch_norm(const aitensor_t *x, int8_t axis, const aitensor_t *means, const aitensor_t *variances, const aitensor_t *offsets, const aitensor_t *scales, const void *eps, aitensor_t *result)</div><div class="ttdoc">Batch Normalization on F32  tensors.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a80dd6f6ad7235bcd71dffe4ad2b70493"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a80dd6f6ad7235bcd71dffe4ad2b70493">aimath_f32_default_conv2d_add</a></div><div class="ttdeci">void aimath_f32_default_conv2d_add(const aitensor_t *input, const uint16_t stride[2], const uint16_t dilation[2], const int16_t padding[2][2], const aitensor_t *kernel, const void *bias, const uint8_t rotated_kernel, const int16_t *input_use_dims, const int16_t *output_use_dims, const int16_t *kernel_use_dims, aitensor_t *output)</div><div class="ttdoc">Performs 2D convolution on slices of 4D F32  tensors and adds an optional bias.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a82d65dcfee8478b18c4632da09ca64d7"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a82d65dcfee8478b18c4632da09ca64d7">aimath_f32_default_conv2d_bwd</a></div><div class="ttdeci">void aimath_f32_default_conv2d_bwd(const aitensor_t *x_in, const uint16_t stride[2], const uint16_t dilation[2], const uint16_t padding[2], const aitensor_t *delta_out, int8_t channel_axis, void *work_space, aitensor_t *d_weights)</div><div class="ttdoc">Calculates the gradients of the Conv2D layer with respect to the weights in F32  data type.</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_a95836b8bf809d28bb88d54ae66555798"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#a95836b8bf809d28bb88d54ae66555798">aimath_f32_default_conv_transpose2d_fwd</a></div><div class="ttdeci">void aimath_f32_default_conv_transpose2d_fwd(const aitensor_t *input, const uint16_t stride[2], const uint16_t dilation[2], const uint16_t padding[2], const uint16_t output_padding[2], const aitensor_t *weights, const aitensor_t *bias, int8_t channel_axis, void *work_space, aitensor_t *output)</div><div class="ttdoc">Performs 2D transposed convolutions with the given 4D F32  tensors and adds a bias (forward pass of t...</div></div>
<div class="ttc" id="aaimath__cnn__f32__default_8h_html_ae9d848ae4f2579b06f0068ccbc056218"><div class="ttname"><a href="aimath__cnn__f32__default_8h.html#ae9d848ae4f2579b06f0068ccbc056218">aimath_f32_default_conv2d_fwd</a></div><div class="ttdeci">void aimath_f32_default_conv2d_fwd(const aitensor_t *input, const uint16_t stride[2], const uint16_t dilation[2], const uint16_t padding[2], const aitensor_t *weights, const aitensor_t *bias, int8_t channel_axis, void *work_space, aitensor_t *output)</div><div class="ttdoc">Performs 2D convolutions with the given 4D F32  tensors and adds a bias (forward pass of the Conv2D l...</div></div>
<div class="ttc" id="aaimath__f32_8h_html"><div class="ttname"><a href="aimath__f32_8h.html">aimath_f32.h</a></div><div class="ttdoc">Definition of the F32 (aif32) data-type.</div></div>
<div class="ttc" id="aaimath__f32__default_8h_html"><div class="ttname"><a href="aimath__f32__default_8h.html">aimath_f32_default.h</a></div><div class="ttdoc">Math functions for F32  data type, default implementation.</div></div>
<div class="ttc" id="astructaitensor_html"><div class="ttname"><a href="structaitensor.html">aitensor</a></div><div class="ttdoc">A tensor in AIfES.</div><div class="ttdef"><b>Definition:</b> aifes_math.h:89</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5233a5861230ad4bc52bfd822c86fe04.html">cnn</a></li><li class="navelem"><a class="el" href="dir_af585f9a5a89e54017897db60f1719d0.html">default</a></li><li class="navelem"><a class="el" href="dir_b079fac787a650d75de05d71be2d2bed.html">aimath</a></li><li class="navelem"><a class="el" href="aimath__cnn__f32__default_8h.html">aimath_cnn_f32_default.h</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
